package net.suncapper.wcss.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import net.suncapper.wcss.model.domain.RoleFlowSetting;
import net.suncapper.wcss.mapper.RoleFlowSettingMapper;
import net.suncapper.wcss.service.IRoleFlowSettingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 审核节点配置 服务实现类
 * </p>
 *
 * @author ztr
 * @since 2025-11-11
 */
@Service
public class RoleFlowSettingServiceImpl extends ServiceImpl<RoleFlowSettingMapper, RoleFlowSetting> implements IRoleFlowSettingService {

    @Override
    public RoleFlowSetting getNode(Integer currentNodeCode) {
        RoleFlowSetting one = super.getOne(Wrappers.<RoleFlowSetting>lambdaQuery().eq(RoleFlowSetting::getNodeCode, currentNodeCode));
        return one;
    }
}
